package com.hznu.jspFinal.service;

import com.hznu.jspFinal.entity.ExerciseInfo;
import com.hznu.jspFinal.myBeans.Exercise;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public interface ExerciseService {

    void addOne(Exercise exercise);

    void update(Exercise exercise);

    void delete(Integer id);

    Exercise findByExerinfoid(Integer id);

    List<Exercise> findByKpointId(Integer id);

    List<Exercise> findByCourseId(Integer id);

    List<Exercise> getExercisesByInfos(List<ExerciseInfo> exerciseInfos);

    List<Exercise> findByKeyword(String keyword,Integer courseid,Integer kpointid);

}
